package alert

import (
	"github.com/robfig/cron"
	"fmt"
)

func init()  {
	c := cron.New()
	spec := "*/30 * * * * ?"
	c.AddFunc(spec, func() {
		fmt.Println("begin to pull prometheus alertmanager data from redis")
		alarm()
	})
	c.Start()
}